package com.wei.web.middleware.httpfilter.registrar.model;

import lombok.Data;

import java.util.List;

@Data
public class CorsConfigDTO {
    private List<CorsItemConfigDTO> corsConfig;

    @Data
    public static class CorsItemConfigDTO {
        private String pathPattern;
        private List<String> allowedHeaders;
        private List<String> allowedMethods;
        private List<String> allowedOrigins;
        private Boolean allowCredentials;
    }
}

